#include "dialog.h"
#include "ui_dialog.h"
#include <QDir>

Dialog::Dialog(const QString &strPath, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
    QPixmap pixMap(QDir::currentPath() + "/Resource/postcard/" + strPath);
    pixMap.scaledToWidth(380);
    ui->label->setPixmap(pixMap);
}

Dialog::~Dialog()
{
    delete ui;
}
